package com.iwhalecloud.citybrain.flow.platform.manager.application.service;

import com.iwhalecloud.citybrain.flow.platform.manager.application.common.enums.VariableTypeEnum;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowModelVariableVo;

import java.util.Arrays;
import java.util.Map;

public interface FlowModelVariableService {

    public Map<String, Object> setDefaultValueToVariables(String deployId, Map<String,Object> variables);

    default boolean isAssigneeType(FlowModelVariableVo entity) {
        return Arrays.asList(VariableTypeEnum.USR.getCode(), VariableTypeEnum.ROL.getCode(), VariableTypeEnum.ORG.getCode()).contains(entity.getType());
    }
}
